#include "Character/Character.h"
#include "Cats/CatsManager.h"
#include "Levels/CatSpawnSet.h"
#include "SpawnSetsInstruction.h"

using namespace cocos2d;

//===== DESTRUCTOR =====
SpawnSetsInstruction::~SpawnSetsInstruction(void)
{

}

//===== PUBLIC FUNCTIONS =====

/*!
    @function runInstruction
    @param		pCatsManager : CatsManager
				modify some value of the CatsManager class
    @result		run instruction to modify CatsManager class
*/
void SpawnSetsInstruction::runInstruction(Character* pCharacter, CatsManager* pCatsManager)
{
	if( pCatsManager != 0 && _pCatSpawnSet != 0 )
	{
		CCLog("Instruction (Spawn Set): Spawning cat type number %i on screen.", _pCatSpawnSet->getTypeOfCat());
		pCatsManager->insertDirectorSpawnSet(_pCatSpawnSet);
	}
}
